package crontab

import (
	"fmt"
	global2 "longmen/server/config/global"
	_const "longmen/server/pkg/common/helper/const"
	"longmen/server/pkg/common/helper/timehelper"
	"time"
)

func DeleteImRecord() {
	qiantian := time.Now().AddDate(0, 0, -2)
	global2.GetRds().Del(fmt.Sprintf(_const.IM_LOGIN_RECORD, qiantian.Format(timehelper.TIME_LAYOUT_FORMAT_4)))
	global2.GetRds().Del(fmt.Sprintf(_const.IM_LOGIN_RECORD_SET, qiantian.Format(timehelper.TIME_LAYOUT_FORMAT_4)))
	global2.GetRds().Del(fmt.Sprintf(_const.IM_LOGIN_RECORD_COUNT, qiantian.Format(timehelper.TIME_LAYOUT_FORMAT_4)))
}
